<?php

namespace App\Http\Model;

use Illuminate\Database\Eloquent\Model;

class Shop extends Model
{
    protected $table = 'shop';		//related table name
    protected $guarded = [];

    /**
     * 商店的供应商（多对多）
     */
    public function shopSupp()
    {
        return $this->belongsToMany('App\Http\Model\ShopSupp', 'shop_supp_protocol_mid', 'shop_id', 'supp_id');
    }
}
